package com.woniu.woqu;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@SpringBootApplication(
		scanBasePackages = {"com.woniu.woqu", "cn.hutool.extra.spring"},
		exclude = SecurityAutoConfiguration.class)
@MapperScan(basePackages = {"com.woniu.woqu.**.mapper"})
public class WoquApplication {

	private static final Logger LOGGER = LoggerFactory.getLogger(WoquApplication.class);

	public static void main(String[] args) {
		ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(WoquApplication.class, args);

		LOGGER.info("The Demo Application is running!");
	}

}
